//
//  UserModel.swift
//  DSHCMerchant
//
//  Created by 罗德良 on 2018/4/14.
//  Copyright © 2018年 袋鼠好车. All rights reserved.
//

import UIKit
import HandyJSON
//{\"status\":true,\"msg\":\"登录成功\",\"data\":{\"token\":\"b15ac58645b21f9ac89b0e53fe9dfb5d\",\"user\":[{\"sid\":122,\"type\":1,\"role\":1},{\"sid\":1,\"type\":1,\"role\":1}]}}"

//"{\"status\":true,\"msg\":\"\\u767b\\u5f55\\u6210\\u529f\",\"data\":{\"token\":\"860622903f23e46460b201dd6d236037\",\"uid\":1,\"user\":[{\"sid\":79,\"work_id\":1,\"role_id\":1},{\"sid\":129,\"work_id\":null,\"role_id\":null},{\"sid\":130,\"work_id\":1,\"role_id\":1},{\"sid\":131,\"work_id\":1,\"role_id\":1},{\"sid\":132,\"work_id\":1,\"role_id\":1}],\"is_recommend\":0,\"recommend_code\":\"\",\"certification_status\":0}}"

//"{\"status\":true,\"msg\":\"\\u767b\\u5f55\\u6210\\u529f\",\"data\":{\"token\":\"552c896b0cf5a6a13b1a6744e6815efc\",\"uid\":30,\"user\":[],\"is_recommend\":0,\"recommend_code\":\"\",\"certification_status\":3}}"

class UserModel: HandyJSON {
    
    static let shareUser = UserModel()
    
    var status :Bool?
    var msg :String = ""
    var data:dataModle?
    required init(){}
}

class dataModle: UserModel {
    var token :String = ""
    var uid :String = ""
    var storeId :String = ""
    var roleId :String = ""  //老板 1  店长  2  员工 3
    var workTypeId :String = ""
    var user :[UserdetailModel]?
    var employeeTypes :[EmployeeTypeModel]?
    var employeeStores :[EmployeeStoreModel]?
    var is_recommend :String = ""//0
    var recommend_code :String = ""
    //0 审核中 1 成功 2 失败 3 未审核
    var certification_status :String = ""
    var description :String = ""
}
//"{\"status\":true,\"msg\":\"获取成功!\",\"data\":{\"uid\":1,\"name\":\"黄黄\",\"work_id\":1,\"account\":18780527896,\"role_id\":1,\"head_url\":\"\\/upload\\/20180505\\/8537452aba853970005476ac1de98560.png\",\"status\":1,\"sex\":0,\"age\":22,\"sid\":132,\"store_id\":132,\"work_name\":\"维修工\",\"store_name\":\"店铺名\",\"work_time\":null,\"skill\":null}}"
class UserdetailModel: UserModel {
    
    var sid :String = ""
    var work_id :String = ""
    var role_id :String = ""
    var name :String = ""
    var account :String = ""
    var head_url :String = ""
    var sex :String = ""
    var age :String = ""
    var work_name :String = ""
    var store_name :String = ""
    var work_time :String = ""
    var store_id :String = ""
    var skill :String = ""
    
    
}
